package com.leo.ibatis.demo.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.leo.ibatis.demo.criteria.ProfileCriteria;
import com.leo.ibatis.demo.domain.Profile;

public interface ProfileDao {

	void insert(Profile profile) throws DataAccessException;

	int update(Profile profile) throws DataAccessException;

	int delete(String userid) throws DataAccessException;

	Profile select(String userid) throws DataAccessException;

	List<Profile> list(ProfileCriteria profileCriteria) throws DataAccessException;
	
	List<Profile> listOnPage(ProfileCriteria profileCriteria) throws DataAccessException;
	
	int count(ProfileCriteria profileCriteria) throws DataAccessException;

}
